package com.second.app.common;

public class Person {
    public void fun1() {
        System.out.println("****-fun1()我来自父类Person");
    }

    public void fun2() {
        System.out.println("****-fun2()我来自父类Person");
    }
}

class Student extends Person {
    public void fun1() {
        System.out.println("####-fun1()我来自子类Student");
    }

    public void fun3() {
        System.out.println("####-fun3()我来自子类Student");
    }
}

class Poly {
    public static void main(String[] args) {
        Person p = new Student();
        p.fun1();
        p.fun2();
    }
}